#include <QCoreApplication>

#include<iostream>
using namespace std;

int main()
{
    char c; int n;
    cout<<"vvedite simvol: s - sever, v - vostok, u - ug, z - zapad\n";
    cin>>c;
    cout<<"vvedite chislo: 0, 1, -1\n";
    cin>>n;
    switch(c)
    {
        case 's':
            n+=0;
            break;
        case 'v':
            n+=3;
            break;
        case 'u':
            n+=2;
            break;
        case 'z':
            n+=1;
            break;
    }
    switch(n){
        case (0):
            cout<<"\nsever";
            break;
        case 1:
            cout<<"\nzapad";
            break;
        case 2:
            cout<<"\nug";
            break;
        case (3):
            cout<<"\nvostok";
            break;
        case (4):
            cout<<"\nsever";
            break;
        case (-1):
            cout<<"\nvostok";
            break;
    }

}
